package com.quwan.app.vo.pay;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author quan
 * @date 2021-06-18 10:07
 */

@Data
public class BuyItParams implements Serializable {
    private static final long serialVersionUID = 733851620812052534L;
    @NotBlank(message = "consumeOrderId not null")
    @ApiModelProperty(value = "消费订单id",required = true)
    private String consumeOrderId;

    @NotBlank(message = "beginTime not null")
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd HH:mm:ss",required = true)
    private String beginTime;

    @NotBlank(message = "payType not null")
    @ApiModelProperty(value = "支付方式 0:余额 1:微信 2:支付宝",required = true)
    private String payType;

    @Min(value = 1,message = "购买数量不能为0")
    @ApiModelProperty(value = "购买数量",required = true)
    private Integer amount;

    @ApiModelProperty(value = "优惠 1签到豆豆优惠抵扣",required = false)
    private String coupon;

}
